package com.mlh.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author 缪林辉
 * @date 2024/3/2 15:30
 * @DESCRIPTION
 */
@Controller
public class IndexController {
    @GetMapping(value = {"/","/login"})
    public String login(){
        // 因为我们引入了starter-thymeleaf
        // 这里就会直接使用视图解析到thymeleaf下的模板文件login.html
        return "login";
    }

}
